package lecture03.switchcase;

/*switch(表达式或变量)
case目标值
语句体
        break*/


import java.util.Scanner;

public class SwitchInf {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int score = sc.nextInt();
        String grade;
        switch (score/10) {
            case 10:
            case 9:
                grade = "A";
                break;
            case 8:
                grade = "B";
                break;
            case 7:
            case 6:
               grade = "C";
               break;
            default:
               grade = "D";
               break;
        }
        System.out.println(grade);

    }

}
